package com.cskaoyan.bean.vo;

import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * 该类用以向客户端响应 topic , create 接口的返回数据;
 * @author: 陈慧颖
 * @time: Created by chy on 2022/6/5 14:54
 */

@Data
public class TopicCreateVo {
    private Integer id;
    private String title;
    private String subtitle;
    private Integer price;
    private String readCount;
    private String picUrl;
    // 数据库里 goods属性是 varchar 类型; 所以须自定义一个 typehandler;
    private List<Integer> goods;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date addTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
    private String content;
}
